package magicboard.view.action
{
	import magicboard.model.Model;
	import magicboard.view.Board;
	
	public class ClearAction implements Action
	{
		// --------------------------------------------------------------------------------------------
		public function ClearAction(board:Board){
			_board = board
		}

		// --------------------------------------------------------------------------------------------
		public function execute():void{
			var bm:Model = _board.boardModel;
			
			bm.clear();
			_board.boardModel = bm;
		}
		
		
		// --------------------------------------------------------------------------------------------
		// Private members
		private var _board:Board;
	}
}